package Presentacion.Recursos.Tabla;
import java.awt.Color;
import java.awt.Component;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.DefaultCellEditor;
import javax.swing.JCheckBox;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

class ButtonRenderer extends JPanel implements TableCellRenderer {


	private static final long serialVersionUID = 1L;

	public ButtonRenderer(JTable t,int index,String path, String pathOver) {
		this.setLayout(null);
		this.setOpaque(true);
		ImageButton ib = new ImageButton(path,pathOver);
		this.add(ib);
		ib.setBounds(5, 2, 10, 10);
	  }

	  public Component getTableCellRendererComponent(JTable table, Object value,
	      boolean isSelected, boolean hasFocus, int row, int column) {
	      setForeground(table.getForeground());
	      setBackground(new Color(49,49,49));
	    return this;
	  }
	}